package d7_extands;

public class B extends A{
    private int k;
    //子类可以继承父类的非私有成员
    public void print3(){
        System.out.println(i);
        print1();
//        print2();//报错
    }

}
